package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.template.DestinationTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

/**
 * @author win
 */
@Repository
public interface DestinationTemplateSearchRepository extends ElasticsearchRepository<DestinationTemplate, Long> {

    /**
     * 根据目的地名称查询目的地
     *
     * @param destName 目的地名称
     * @return
     */
    DestinationTemplate findByName(String destName);
}
